/*
 * @Date: 2021-12-12 19:47:04
 * @LastEditors: LeeKing
 * @LastEditTime: 2021-12-12 21:07:40
 * @FilePath: \admin\src\utils\auth.js
 */
import Cookies from 'js-cookie'

const TokenKey = 'admin_token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
